# name : proc power prop two
# key : power.prop.freq.two
# contributor: Shuguang Sun
# --
proc power;
twosamplefreq
/* test and power */
test = ${1:$$(yas-choose-value '("PCHI" "FM" "FISHER" "FM_RR" "LRCHI"))}
alpha = 0.025
sides = 1
power = ${2:0.9}
groupproportions = ${3:0.2 | 0.3 0.4 or (0.2 0.3) (0.2 0.4)}
/* nullproportiondiff = number-list */
/* proportiondiff = number-list */
/* refproportion = number-list */
groupweights = ${4:(1 2)}
ntotal = .
/* or */
npergroup = .;
run;
